package lee.vioson.remotedata.bean

import android.icu.text.SimpleDateFormat
import java.util.Date
import java.util.Locale

data class FeedbackDetail(
    val firstMessageId: String,
    val id: String,
    val isRead: Int,
    val isReply: Int,
    val messageContent: String,
    val messageDate: Long,
    val messagePhoto: String?,
    val messageUserId: String,
    val messageUserName: String,
    val parentMessageId: String,
    val readDate: Int,
    val type: String,
    val typeCode: String
) {
    val messageDateStr: String
        get() = SimpleDateFormat("MMM d,yyyy hh:mm:ss", Locale.US).format(Date(messageDate))

    val photoList: List<String>?
        get() = messagePhoto?.toList()
}